//
//  ProfitRecord2TableViewCell.m
//  beautyLamp
//
//  Created by Tam Kwok To Michael on 2017/9/21.
//  Copyright © 2017年 Tam Kwok To Michael. All rights reserved.
//

#import "ProfitRecord2TableViewCell.h"
#import "Profit.h"

@interface ProfitRecord2TableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *profitLabel;

@end

@implementation ProfitRecord2TableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setupUI:(Profit *)profit symbol:(BOOL)isMius {
    self.timeLabel.text = profit.t_msg;
    NSString *state = isMius ? @"-￥" : @"+￥";
    self.profitLabel.text = [NSString stringWithFormat:@"%@%.3f",state,[profit.t_money floatValue]];
}
@end
